<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id = 'app'>
   
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:'#app',
            data:{

            }
        
          
        })


        //es5语法
        let name = "小明";
        let age = 28;
        let height = 188

        // const obj = {
        //     name:name,
        //     age:age,
        //     height:height
        // }
        // console.log(obj);

        //1、es6语法  对象的增强写法
        // const obj = {
        //     name,
        //     age,
        //     height
        // }
        // console.log(obj);


        //2、函数的增强写法
       const obj = {
           //es5的写法
        //    eat:function(){

        //    }

        //es6的写法
        eat(){

        }
       }


       
    </script>
</body>
</html>